package cn.yh.liu.entity;

import java.util.List;

public class Page<T>{
	
	private int pageIndex;
	
	private int pageSize;
	
	private int totalPage;
	
	private int count;
	
	private List<T> list;
	
	public int getPageIndex() {
		return pageIndex;
	}
	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
		this.totalPage=this.count%this.pageSize==0?this.count/this.pageSize:(this.count/this.pageSize+1);
		
	}
	public List<T> getList() {
		return list;
	}
	public void setList(List<T> list) {
		this.list = list;
	}
	
}
